//
//  HViewerInfoViewModel.m
//  linktuIOS
//
//  Created by hejunsong on 2017/1/14.
//  Copyright © 2017年 tianxie. All rights reserved.
//

#import "HViewerInfoViewModel.h"
#import "MTLiveApiManager.h"

@interface HViewerInfoViewModel()




@end

@implementation HViewerInfoViewModel


-(void)refresh:(NSString *)roomID success:(void (^)(BOOL success))result;
{
    [[MTLiveApiManager manager] getLiveViewersWithLiveId:roomID completion:^(NSMutableArray<LTUser *> *viewers, MTError *error) {
        if(error == nil)
        {
            self.viewerModelArray = viewers;
            result(YES);
        }else
        {
            result(NO);
        }
    }];
}





@end
